import { ApiProperty } from '@nestjs/swagger';
import { IsInt, IsString } from 'class-validator';
import { UploadedFileRes } from 'src/modules/system/common/upload/interfaces/upload.interfaces';

export class TtsDto {
  @ApiProperty({ description: '文本' })
  @IsString()
  text: string;
}

export class TtsDtoResDto extends UploadedFileRes {
  @ApiProperty({ description: '时长，单位：秒' })
  @IsInt()
  duration: number;
}
